<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>tango.io.stream.FormatStream</title>
  <link href="./css/style.css" rel="stylesheet" type="text/css"/>
  <!-- <link href="./img/icon.png" rel="icon" type="image/png"/> -->
  <script type="text/javascript" src="./js/jquery.js"></script>
  <script type="text/javascript" src="./js/modules.js"></script>
  <script type="text/javascript" src="./js/quicksearch.js"></script>
  <script type="text/javascript" src="./js/navigation.js"></script>
  <!--<script type="text/javascript" src="./js/jquery.treeview.js"></script>-->
  <script type="text/javascript">
    var g_moduleFQN = "tango.io.stream.FormatStream";
  </script>
  
</head>
<body>
<div id="content">
  <h1><a href="./htmlsrc/tango.io.stream.FormatStream.html" class="symbol">tango.io.stream.FormatStream</a></h1>
  
<p class="sec_header">License:</p>BSD style: see <a href="http://www.dsource.org/projects/tango/wiki/LibraryLicense">license.txt</a>
<p class="sec_header">Version:</p>Initial release: Oct 2007
<p class="sec_header">Author:</p>Kris
<dl>
<dt class="decl">class <a class="symbol _class" name="FormatOutput" href="./htmlsrc/tango.io.stream.FormatStream.html#L40" kind="class" beg="40" end="56">FormatOutput</a> : Print!(char); <a title="Permalink to this symbol" href="#FormatOutput" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.FormatStream.html#L40">#</a></dt>
<dd class="ddef">
<div class="summary">Simple way to hook up a utf8 formatter to an arbitrary OutputStream,
        such as a file:
        <pre class="d_code">
<span class="k">auto</span> <span class="i">output</span> = <span class="k">new</span> <span class="i">FormatOutput</span> (<span class="k">new</span> <span class="i">FileOutput</span>(<span class="sl">"path"</span>));
<span class="i">output</span>.<span class="i">formatln</span> (<span class="sl">"{} green bottles"</span>, <span class="n">10</span>);
<span class="i">output</span>.<span class="i">close</span>;
</pre></div>
This is a trivial wrapper around the Print class, and is limited
        to emitting utf8 output. Use the Print class directly in order to
        generate utf16/32 output instead.
<p class="bl"/>
        Note that this class is a true instance of OutputStream, by way of
        inheritance via the Print superclass.
<dl>
<dt class="decl"><a class="symbol _ctor" name="FormatOutput.this" href="./htmlsrc/tango.io.stream.FormatStream.html#L51" kind="ctor" beg="51" end="55">this</a><span class="params">(OutputStream <em>stream</em>, bool <em>flush</em> = false)</span>; <a title="Permalink to this symbol" href="#FormatOutput.this" class="symlink">¶</a><a title="Go to the HTML source file" class="srclink" href="./htmlsrc/tango.io.stream.FormatStream.html#L51">#</a></dt>
<dd class="ddef">
<div class="summary">Create a Layout instance and bind it to the given stream.
                The optional second argument controls implicit flushing of 
                newline(), where true enables flushing. An explicit flush() 
                will always flush the output.</div></dd></dl></dd></dl>
</div>
<div id="footer">
  <p>Copyright (c) 2007 Kris Bell. All rights reserved</p>
  <p>Page generated by <a href="http://code.google.com/p/dil">dil</a> on Fri Dec 26 04:04:01 2008. Rendered by <a href="http://code.google.com/p/dil/wiki/Kandil">kandil</a>.</p>
</div>
</body>
</html>